//
//  Statistics.m
//  FH2go
//
//  Created by Hannes Feichtl on 12.06.13.
//  Copyright (c) 2013 Hannes Feichtl. All rights reserved.
//

#import "Statistics.h"

@implementation Statistics

@synthesize average;
@synthesize excellent;
@synthesize good;
@synthesize participants;
@synthesize satisfactory;
@synthesize sufficient;
@synthesize unsatisfactory;

- (id)initWithDict:(NSDictionary*)dict {
    self = [super init];
    if (self) {
        average = [dict objectForKey:@"Average"];
        excellent = [[dict objectForKey:@"Excellent"] intValue];
        good = [[dict objectForKey:@"Good"] intValue];
        satisfactory = [[dict objectForKey:@"Satisfactory"] intValue];
        sufficient = [[dict objectForKey:@"Sufficient"] intValue];
        unsatisfactory = [[dict objectForKey:@"Unsatisfactory"] intValue];
        participants = [[dict objectForKey:@"Participants"] intValue];
        
    }
    return self;
}



@end
